package com.hushan.elevator.service;

import com.hushan.elevator.model.MntPerson;

import java.util.List;

public interface MntPersonService {
    void addPerson(MntPerson person);

    MntPerson getPersonById(int id);

    void updatePerson(MntPerson mntPerson);

    List<MntPerson> getPersonsByDeptId(int deptId);

    int findCountByDept(Integer id);

    boolean detectAuthorize(Integer mntPersonId);

    void deleteById(int id) throws Exception;

    MntPerson findByDevice(Integer deviceId);
}
